<!DOCTYPE HTML>
<html>
<head>
<!-- 
  Copyright 2014, J. Pol
 
  This file is part of free software: you can redistribute it and/or modify it under the terms of the
  GNU General Public License as published by the Free Software Foundation.
  
  This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even
  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  
  See the GNU General Public License for more details. A copy of the GNU General Public License is
  available at <http://www.gnu.org/licenses/>.
 -->
<meta http-equiv="Content-type" content="text/html;charset=UTF-8">
<title>DiBL: Thread diagram browser for Flanders grounds</title>
<link rel="stylesheet" type="text/css" href="style.css"/>
<script type="text/javascript" src="script.js"></script>
</head>
<body onload="showFlanders()">
	<h1>Bobbin Lace - Thread diagram browser for Flanders grounds</h1>
	<p>
		Powered by: <a href="https://code.google.com/p/dibl/">DiBL</a>
	</p>

	<h2>Configure a diagram</h2>
	<form name="diagramConfig">
		<table>
			<tbody>
				<tr>
					<td rowspan="4">stitches&nbsp;</td>
					<td class="narrow"><select size="1" name="A1" onchange="showFlanders()">
							<option value="tc">tc</option>
							<option value="ctc">ctc</option>
							<option value="tctc">tctc</option>
					</select></td>
					<td class="narrow"></td>
					<td><select size="1" name="A2" onchange="showFlanders()">
							<option value="tc">tc</option>
							<option value="ctc">ctc</option>
							<option value="tctc">tctc</option>
					</select></td>
					<td rowspan="4"></td>
				</tr>
				<tr>
					<td></td>
					<td><select size="1" name="A3" onchange="showFlanders()">
							<option value="tc">tc</option>
							<option value="ctc">ctc</option>
							<option value="tctc">tctc</option>
					</select></td>
					<td></td>
				</tr>
				<tr>
					<td><select size="1" name="B1" onchange="showFlanders()">
							<option value="tc">tc</option>
							<option value="ctc">ctc</option>
							<option value="tctc">tctc</option>
					</select></td>
					<td></td>
					<td><select size="1" name="B2" onchange="showFlanders()">
							<option value="tc">tc</option>
							<option value="ctc">ctc</option>
							<option value="tctc">tctc</option>
					</select></td>
				</tr>
				<tr>
					<td></td>
					<td><select size="1" name="B3" onchange="showFlanders()">
							<option value="tc">tc</option>
							<option value="ctc">ctc</option>
							<option value="tctc">tctc</option>
					</select></td>
				</tr>
				<tr>
					<td>image&nbsp;type&nbsp;</td>
					<td colspan="4"><select size="1" name="ext" onchange="showFlanders()">
							<option value="svg">svg</option>
							<option value="png">png</option>
							<option value="jpg">jpg</option>
							<option value="tiff">tiff</option>
					</select> See <a href="https://code.google.com/p/dibl/wiki/EditDiagrams">edit hints</a>
						for svg images.
					</td>
				</tr>
			</tbody>
		</table>
		<input type="submit" value="submit" target="diagramImage" onclick="document.getElementById('commands').className='show';return false;">
	</form>
	<div id="commands" class="hide">
	<p>A submit button is not yet implemented.
		For now you have to 
		<a href="https://code.google.com/p/dibl/wiki/Install">install DiBL</a>
		and copy-paste the configured command into a 
		<code>.sh</code> or <code>.bat</code> file to execute.
	</p>

	<ul>
		<li>sh (Mac / Unix, the multiline string requires quotes)<pre id="sh">&nbsp;</pre></li>
		<li>bat (Windows, the multiline string requires empty lines)<pre id="bat">&nbsp;</pre></li>
	</ul>
</div>
	<img name="diagramImage" src="../input/flanders.svg"/>
</body>
</html>